package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * InnoDB free: 4096 kB
 * </p>
 *
 * @author ly
 * @since 2022-06-13
 */
@Data
public class Commentsecord implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 二级评论id
     */
        @TableId(value = "cmsid", type = IdType.AUTO)
      private Integer cmsid;

      /**
     * 一级评论id
     */
      private Integer cmid;

      /**
     * 用户id
     */
      private Integer uid;

      /**
     * 二级评论内容
     */
      private String cmsdetail;

      /**
     * 二级评论时间
     */
      @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime cmsdate;

      /**
     * 赞数
     */
      private Integer praisenum;

      /**
     * 踩数
     */
      private Integer stampnum;
}
